package com.mcflies.aotoPartsManager.dao;

import org.hibernate.Session;

import com.mcflies.commons.util.HibernateSessionFactory;
/**
 * 
 * AutoPartsDAO.java
 * @describe：整个AutoParts项目的DAO的基类,用来获取Hibernate的Session对象和关闭Hibernate的Session对象
 * @Copyright(c) 2012-2024 Study,mcfly
 * @author mcfly_jun
 */
public class AutoPartsBaseDAO {
	public Session openDBSession() {
		return HibernateSessionFactory.getSession();
	}

	public void closeDBSession() {
		HibernateSessionFactory.closeSession();
	}
}
